#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a;
	scanf("%d", &a);
	for (int i = 0; i < a; i++)
	{
		for (int r = 0; r < a - 1 - i; r++)
			printf(" ");
		for (int m = 0; m < 2 * i + 1; m++)
			printf("*");
		printf("\n");
	}
	for (int i = 0; i < a-1; i++)
	{
		for (int r = 0; r <= i; r++)
			printf(" ");
		for (int m = 0; m < 2 * (a-1-i) - 1; m++)
			printf("*");
		printf("\n");
	}

}